package com.pine.app.module.security.oauth.exception;

import com.pine.app.module.security.core.common.enums.ErrorType;
import com.pine.app.module.security.core.common.enums.ResponseProduceType;

/**
 * @author xiaoyuan
 * @create 2019/12/20 11:19
 **/
public class BadCredentialsException extends AuthenticationException
{

    public BadCredentialsException(ErrorType errorType) {
        this(errorType, errorType.message());
    }

    public BadCredentialsException(ErrorType errorType, String message) {
        super(errorType,message);
    }

    public BadCredentialsException(ErrorType errorType, ResponseProduceType responseProduceTypeEnum, String pagePath) {
       super(errorType, errorType.message(),responseProduceTypeEnum,pagePath);
    }
}